package com.zmytest.service.impl;

import com.zmytest.dto.ResponseDto;
import com.zmytest.service.CacheService;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.data.redis.core.RedisTemplate;
import org.springframework.stereotype.Service;

/**
 * Created on 2018/12/21.
 *
 * @author zhangmingyu
 */
@Service
@Slf4j
public class CacheServiceImpl implements CacheService{

    private final RedisTemplate redisTemplate;

    @Autowired
    public CacheServiceImpl(RedisTemplate redisTemplate) {
        this.redisTemplate = redisTemplate;
    }

    @Override
    public ResponseDto<Object> create(Object key, Object value) {
        return null;
    }

    @Override
    public ResponseDto<Object> create(Object key, Object value, Long expireTime) {
        return null;
    }

    @Override
    public ResponseDto<Object> find(Object key) {
        return null;
    }

    @Override
    public ResponseDto<String> delete(Object key) {
        return null;
    }
}
